﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using FC.Model;


namespace FC.ViewModel.QuestionVMs
{
    public partial class QuestionTemplateVM : BaseTemplateVM
    {
        [Display(Name = "追问")]
        public ExcelPropety Content_Excel = ExcelPropety.CreateProperty<Question>(x => x.Content);
        [Display(Name = "_Admin.Parent")]
        public ExcelPropety Parent_Excel = ExcelPropety.CreateProperty<Question>(x => x.ParentId);

	    protected override void InitVM()
        {
            Parent_Excel.DataType = ColumnDataType.ComboBox;
            Parent_Excel.ListItems = DC.Set<Question>().GetSelectListItems(Wtm, y => y.Content);
        }

    }

    public class QuestionImportVM : BaseImportVM<QuestionTemplateVM, Question>
    {

    }

}
